package com.doubao.doubao_admin.mapper;

import com.doubao.doubao_admin.model.entity.BmsTip;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface BmsTipMapper {
    //数据库表里随机选出一条数据
    @Select("select * from bms_tip order by rand() limit 1")
    BmsTip getRandomTip();
}
